ui_print("Quectel FOTA Tools
  Version
     v3.6 : add full image fota function
  Contact : <ramos.zhang@quectel.com>
");
ui_print("Patching system files...");
set_progress(0.000000);
unmount("/system");
write_raw_image(package_extract_file("full-images/mdm9607-sysfs.ubi"), "system");
check_partition_sha1("MTD:system:84410368:85b1bc24b0c395de8f044cb2c275a27e44991ec9");
set_progress(0.941045);
write_raw_image(package_extract_file("full-images/mdm9607-boot.img"), "boot");
check_partition_sha1("MTD:boot:5288192:00131c5e809f8417dd5d4954cee1e0cbd56ef947");
set_progress(1.000000);
ui_print("Upgrade finished!!!");
